﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.AspNet.SignalR;
using System.Threading.Tasks;

namespace SonCa.SocialNetwork.Web
{
    public class sendMessage : PersistentConnection
    {
        protected override Task OnReceived(IRequest request, string clientId, string data)
        {
            //HttpContext.Current.Session["SignalRClientId"] = clientId;
            // Broadcast data to all clients
            return Connection.Broadcast(data);
        }
    }
}